package day3;

public class Test2 {
    public static void main(String[] args) {
        //数组内存理解
        int[] arr1 = {1,2,3};
        int[] arr2 = arr1;
        System.out.println("arr1[0]:"+arr1[0]);
        System.out.println("arr2[0]:"+arr2[0]);

        arr1[0] = 10;
        System.out.println("arr1[0]:"+arr1[0]);
        System.out.println("arr2[0]:"+arr2[0]);

        //数组遍历
        for (int i = 0; i < arr1.length; i++) {
            System.out.println(arr1[i]);

        }
        int[] arr3 ;
        arr3 = new int[3];

    }


}
